package com.mf.domain.general.tree;

import java.util.List;

/**
 * ZTree 数据结构
 * User: zhaoming
 * Date: 14-11-25
 * Time: 下午5:29
 * To change this template use File | Settings | File Templates.
 */
public class ZTree<T extends Object> {

    /**
     * 节点ID
     */
    private Long id;
    /**
     * 节点编码
     */
    private String code;
    /**
     * 节点文字
     */
    private String name;
    /**
     * 节点是否展开
     */
    private Boolean open;
    /**
     * 节点是否被选中
     */
    private Boolean checked;
    /**
     * 子节点
     */
    private List<ZTree> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public List<ZTree> getChildren() {
        return children;
    }

    public void setChildren(List<ZTree> children) {
        this.children = children;
    }
}
